﻿Imports Aricie.DNN.UI.Attributes
Imports Aricie.DNN.UI.WebControls
Imports Aricie.DNN.Modules.LuceneSearch.Business
Imports System.Reflection
Imports Aricie.Services
Imports System.Linq

Namespace Aricie.DNN.Modules.LuceneSearch.Settings.AutoCompleteSettings

    Public Class SearchedFieldsSelector
        Inherits SelectorControl(Of FieldDefinition)

        Public Overrides Function GetEntitiesG() As IList(Of FieldDefinition)
            Dim PQD As PortalQueryingDriver = PortalQueryingDriver.GetCurrent()
            Return PQD.GetIndexedFields().OrderBy(Function(field) field.Id).ToList()
        End Function
    End Class
End Namespace